<div class="groups">
{% for group in system_owned_groups %}
  <div class="access_list_group">
    <p>
      <strong>{{ group.name }}</strong>
    </p>
  </div> <!-- access_list_group -->
{% endfor %}
{% for group in user_owned_groups %}
  {% include "tardis_portal/ajax/add_group_result.html" %}
{% endfor %}
</div> <!-- groups -->
<p>
  <strong><label>Add group name: </label></strong>

  {% for field in addGroupPermissionsForm %}
      {% if field.label == "Authentication Method" %}
		<div class="newgroup" style="display: none">
	      {{ field.label }}: {{ field }}
		<br/><br/>
      {% else %}
          {% if field.label == "Group" %}
              {{ field }}
          {% else %}
	          {% if field.label == "User" %}
	              Group admin: {{ field }}
				<br/><br/>
				Group permissions:
				<br/>
	          {% else %}
		   		  {% if field.label == "DELETE" %}
					{{ field }} {{ field.label }}
					<br/><br/>
					</div>
				  {% else %}
	                 {{ field }} {{ field.label }}
					<br/>
	 			  {% endif %}
	          {% endif %}
	      {% endif %}
      {% endif %}
  {% endfor %}

  <a class="form_submit" id="group" href="">Add Group</a>
  <input type="hidden" name="experiment_id" class="experiment_id" value="{{experiment_id}}">
</p>
